const mongoose = require('mongoose')
const Schema = mongoose.Schema

const noteSchema = new Schema({
  type: {
    type: String,
    required: true
  },
  position: {
    x: {
      type: Number,
      required: true
    },
    y: {
      type: Number,
      required: true
    }
  },
  width: {
    type: Number,
    required: true
  },
  color: {
    type: String,
    required: true
  },
  content: {
    type: String
  }
})

const Note = mongoose.model('Note', noteSchema)
module.exports = Note
